package org.jet.emall.rbac.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-04-09 14:51
 */
@Data
@Accessors(chain = true)
@ApiModel("后台管理操作DTO对象")
public class AdminOperationDTO {
    @ApiModelProperty(value = "操作的id")
    private Integer id;

    @ApiModelProperty(value = "操作名称,例如添加用户")
    private String name;

    @ApiModelProperty(value = "操作编码，即每个操作有一个编号，不同于id")
    private String code;

    @ApiModelProperty(value = "拦截url前缀,如果没有这个操作的权限，则这个url会被拦截")
    private String url;

    @ApiModelProperty(value = "操作的请求方式: get,post,put,delete, patch")
    private String method;

    @ApiModelProperty(value = "该操作所属菜单的id")
    private Integer menuId;
}
